Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@equinor/fusion-framework-module-http
Advanced tools
Module for configuring and providing http clients
Module for configuring and providing http clients
const configure = (config) => {
config.http.configureClient(
'bar',
'https://somewhere-test.com'
);
}
const configure = (config) => {
config.http.configureClient(
'bar',
{
baseUri: 'https://foo.bar',
defaultScopes: ['foobar/.default']
}
);
}
const configure = async(config) => {
config.http.configureClient(
'bar',
(client): => {
client.uri = 'https://foo.bar'
client.defaultScopes: ['foobar/.default']
}
);
}
const client = modules.http.createClient('foo');
const selector = (response: Response): Promise<FooBar> => response.json();
// stream
client.fetch('/api/admin', {selector, scopes: ['foobar/.admin']}).subscribe(x => console.log(x));
// async
client.fetchAsync('/api', {selector}).then(console.log);
const client = modules.http.createClient('foo');
const logger = console.debug;
client.requestHandler.add((x: Request) => logger(x));
client.responseHandler.add((x: Request) => logger(x));
FAQs
> __The Fusion Framework HTTP Module provides a streamlined and powerful HTTP client for making requests to APIs.__ > > The module supports both asynchronous (Promise-based) and observable (RxJS-based) execution methods, allowing you to choose the approac
We found that @equinor/fusion-framework-module-http demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.